import request from '@/utils/request'
const api_name = '/ucenter/teacher/teachers'

export function login(data) {
  return request({
    url: `${api_name}/login`,
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: `${api_name}/verify`,
    method: 'get',
  })
}

export function logout(data) {
  return request({
    url: `${api_name}/logout`,
    method: 'post',
    data
  })
}
